﻿<frm:Form x:Class="VAdvantage.Framework.AcctViewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
          xmlns:frm="clr-namespace:SilverlightDesktop.Controls;assembly=SilverlightDesktop" 
           xmlns:my="clr-namespace:SLControls.Controls;assembly=SLControls"
            xmlns:my1="clr-namespace:VAdvantage.Controls"               
          mc:Ignorable="d"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
          Title="Account Viewer"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
         Width="800"
          xmlns:my2="clr-namespace:Groupbox;assembly=Groupbox" Icon="/VAdvantage;component/Images/VIcon.png">


    <Grid x:Name="LayoutRoot" Background="White">
        <my:VTabControl HorizontalAlignment="Stretch" Name="vTabmain" VerticalAlignment="Stretch">
            <sdk:TabItem Header="T1" Name="tabItem1">
                <Grid Margin="1,0,0,0" Background="Transparent">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <my2:GroupBox Height="Auto" HorizontalAlignment="Stretch" Margin="0,0,1,0" Header="Selec" Name="groupBox1" VerticalAlignment="Stretch" Width="Auto" >
                    <Grid Height="Auto" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="grid1" VerticalAlignment="Stretch" Width="Auto" >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*"  />
                        </Grid.ColumnDefinitions>
                            <my:VLabel Grid.Column="1" Grid.Row="1"  Height="Auto" HorizontalAlignment="Stretch" Name="vlblAccSchema" VerticalAlignment="Stretch" Width="Auto" Content="Acc Schema" HorizontalContentAlignment="Right" Margin="0,4,0,0" />
                            <my:VCheckBox Content="Sele Doc" Grid.Column="1"  Grid.Row="2" Height="Auto" Name="vchkSelectDoc" HorizontalContentAlignment="Center" Margin="0,4" VerticalAlignment="Center" />
                            <my:VLabel Grid.Column="1" Grid.Row="3" Height="Auto" HorizontalAlignment="Stretch" Name="vlblPostType" VerticalAlignment="Stretch" Width="Auto" Content="Post Type" HorizontalContentAlignment="Right" Margin="0,4,0,0" />
                            <my:VLabel Content="Acc Date" Height="Auto" HorizontalContentAlignment="Right" Name="vlblAccDate" VerticalAlignment="Stretch" Width="Auto" Grid.Column="1" Grid.Row="4" Margin="0,4,0,0" />
                            <my:VLabel Content="Org" Height="Auto" HorizontalAlignment="Stretch" HorizontalContentAlignment="Right" Margin="0,4,0,0" Name="vlblQrg" VerticalAlignment="Stretch" Width="Auto" Grid.Column="1" Grid.Row="5" />
                            <my:VLabel Content="Acc" Height="Auto" HorizontalAlignment="Stretch" HorizontalContentAlignment="Right" Margin="0,4" Name="vlblAcc" VerticalAlignment="Stretch" Width="Auto" Grid.Column="1" Grid.Row="6" />
                            <my:VLabel Content="Pro" Height="Auto" HorizontalAlignment="Stretch" HorizontalContentAlignment="Right" Margin="0,4" Name="vlblProduct" VerticalAlignment="Stretch" Width="Auto" Grid.Column="1" Grid.Row="7" />
                            <my:VLabel Content="BP" Height="Auto" HorizontalAlignment="Stretch" HorizontalContentAlignment="Right" Margin="0,4" Name="vlblBP" VerticalAlignment="Stretch" Width="Auto" Grid.Column="1" Grid.Row="8" />
                            <my:VLabel Content="Proj" Grid.Row="9" Height="Auto" HorizontalAlignment="Stretch" HorizontalContentAlignment="Right" Margin="0,4" Name="vlblProject" VerticalAlignment="Stretch" Width="Auto" Grid.Column="1" />
                            <my:VLabel Content="Camp" Grid.Row="10" Height="Auto" HorizontalAlignment="Stretch" HorizontalContentAlignment="Right" Margin="0,4" Name="vlblCompaning" VerticalAlignment="Stretch" Width="Auto" Grid.Column="1" />
                            <my:VComboBox Height="Auto" HorizontalAlignment="Stretch" Margin="4,4,0,4" Name="vcmbAccSchema" VerticalAlignment="Stretch" Width="Auto" Grid.Column="2" Grid.Row="1" MaxWidth="200" />
                            <my:VComboBox Height="20" HorizontalAlignment="Stretch" Margin="4,4,0,4" Name="vcmbSelectDoc" VerticalAlignment="Stretch" Width="Auto" Grid.Column="2" Grid.Row="2" MaxWidth="200" />
                            <my:VComboBox Height="Auto" HorizontalAlignment="Stretch" Margin="4,4,0,4" Name="vcmbPostType" VerticalAlignment="Stretch" Width="Auto" Grid.Column="2" Grid.Row="3" MinHeight="20" MaxWidth="200" />
                            <my:VComboBox Height="Auto" HorizontalAlignment="Stretch" Margin="4,4,0,4" Name="vcmbOrg" VerticalAlignment="Stretch" Width="Auto" Grid.Column="2" Grid.Row="5" MaxWidth="200" MinHeight="20" />
                            <sdk:DatePicker Height="Auto" HorizontalAlignment="Stretch" Margin="4,4,0,4" Name="vdtpkAccDateFrom" VerticalAlignment="Stretch" Width="Auto" MaxWidth="200" Grid.Column="2" Grid.Row="4" />
                            <sdk:DatePicker Height="Auto" HorizontalAlignment="Stretch" Margin="4,4,0,4" Name="vdtpkAccDateTo" VerticalAlignment="Stretch" Grid.Column="3" Grid.Row="4" />
                            <my:VImage Height="25" HorizontalAlignment="Left" Margin="4,4,0,4" Name="vbtnSelctDoc" MinWidth="25"  VerticalAlignment="Stretch" Width="Auto" Grid.Column="3" Grid.Row="2"  IsEnabled="False" Icon="/VAdvantage;component/Images/Find24.png" />
                            <my:VImage Height="25" HorizontalAlignment="Left" IsEnabled="False" Margin="4,4,0,4" Name="vbtnAccount" MinWidth="25"  Icon="/VAdvantage;component/Images/Find24.png" VerticalAlignment="Stretch" Width="Auto" Grid.Column="2" Grid.Row="6" />
                            <my:VImage Height="25" HorizontalAlignment="Left" IsEnabled="False" Margin="4,4,0,4" Name="vbtnProduct" MinWidth="25"  Icon="/VAdvantage;component/Images/Find24.png" VerticalAlignment="Stretch" Width="Auto" Grid.Column="2" Grid.Row="7"  />
                            <my:VImage Height="25" HorizontalAlignment="Left" IsEnabled="False" Margin="4,4,0,4" Name="vbtnBPartner" MinWidth="25"  Icon="/VAdvantage;component/Images/Find24.png" VerticalAlignment="Stretch" Width="Auto" Grid.Column="2" Grid.Row="8" />
                            <my:VImage Height="25" HorizontalAlignment="Left" IsEnabled="False" Margin="4,4,0,4" Name="vbtnProject" MinWidth="25"  Icon="/VAdvantage;component/Images/Find24.png" Width="Auto" Grid.Column="2" Grid.Row="9"  />
                            <my:VImage Height="25" HorizontalAlignment="Left" IsEnabled="False" Margin="4" Name="vbtnCampaning" MinWidth="25" Icon="/VAdvantage;component/Images/Find24.png" VerticalAlignment="Stretch" Width="Auto" Grid.Column="2" Grid.Row="10" />
                        </Grid>
                    </my2:GroupBox>
                    <my2:GroupBox Grid.Column="1" Height="Auto" Header="Disp" HorizontalAlignment="Stretch" Margin="0" Name="groupBox2" VerticalAlignment="Stretch" Width="Auto" >
                        <Grid  Height="Auto" HorizontalAlignment="Stretch" Margin="0" Name="grid2" VerticalAlignment="Stretch" Width="Auto" >
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" MaxWidth="200"/>
                                <ColumnDefinition Width="Auto" MaxWidth="100" />
                            </Grid.ColumnDefinitions>
                            <my:VCheckBox Content="DisDocInfo" Grid.Row="1" Height="Auto" HorizontalAlignment="Stretch" Margin="0,6" Name="vchkDisDocinfo" VerticalAlignment="Stretch" IsChecked="False" />
                            <my:VCheckBox Content="DisSourceInfo" Height="Auto" HorizontalAlignment="Stretch" Margin="0,6" Name="vchkDisSouce" VerticalAlignment="Stretch" Grid.Row="2" />
                            <my:VCheckBox Content="DispQuatity" Height="Auto" HorizontalAlignment="Stretch" Margin="0,6" Name="vchkQty" VerticalAlignment="Stretch" Grid.Row="3" />
                            <my:VLabel Grid.Row="4" Height="Auto" HorizontalAlignment="Stretch" Margin="0,6" Name="vlblSort" VerticalAlignment="Stretch" Width="Auto" Content="Sort" />
                            <my:VLabel Height="Auto" HorizontalAlignment="Stretch" Margin="6,6,2,6" Name="vlblSumrise" VerticalAlignment="Stretch" Width="Auto" Grid.Column="1" Grid.Row="4" Content="Summariz" />
                            <my:VComboBox Grid.Row="5" Height="Auto" HorizontalAlignment="Stretch" Margin="0,6" Name="vcmbSort1" VerticalAlignment="Top" Width="Auto" VerticalContentAlignment="Stretch" />
                            <my:VComboBox Height="Auto" HorizontalAlignment="Stretch" Name="vcmbSort2" VerticalAlignment="Stretch" Width="Auto" Grid.Row="6" Margin="0,6" />
                            <my:VComboBox Height="Auto" HorizontalAlignment="Stretch" Name="vcmbSort3" VerticalAlignment="Stretch" Width="Auto" Grid.Row="7" Margin="0,6" />
                            <my:VComboBox Height="Auto" HorizontalAlignment="Stretch" Name="vcmbSort4" VerticalAlignment="Stretch" Width="Auto" Grid.Row="8" Margin="0,6" />
                            <my:VCheckBox Grid.Column="1" Grid.Row="5" Height="Auto" HorizontalAlignment="Stretch" Margin="6,6,0,6" Name="vchkSumriz1" VerticalAlignment="Stretch" />
                            <my:VCheckBox Height="Auto" HorizontalAlignment="Stretch" Margin="6,6,0,6" Name="vchkSumriz2" VerticalAlignment="Stretch" Grid.Column="1" Grid.Row="6" />
                            <my:VCheckBox Height="Auto" HorizontalAlignment="Stretch" Margin="6,6,0,6" Name="vchkSumriz3" VerticalAlignment="Stretch" Grid.Column="1" Grid.Row="7" />
                            <my:VCheckBox Height="Auto" HorizontalAlignment="Stretch" Margin="6,6,0,6" Name="vchkSumriz4" VerticalAlignment="Stretch" Grid.Column="1" Grid.Row="8" />
                        </Grid>
                    </my2:GroupBox>
                    <Grid Grid.Row="1" Height="Auto" HorizontalAlignment="Stretch" Name="grid3" VerticalAlignment="Stretch" Width="Auto" Grid.ColumnSpan="2" >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <my:VLabel Height="Auto" HorizontalAlignment="Stretch" Margin="0,6,6,6" Name="vlblstatusLine" VerticalAlignment="Stretch" Content="Enter Selction and Display criteria and Start Query try to find" Width="Auto" HorizontalContentAlignment="Right" />
                        <my:VImage Grid.Column="1" Height="35" HorizontalAlignment="Stretch" Margin="0,6,6,6" Name="vbtnPrint" VerticalAlignment="Top" Width="35" VerticalContentAlignment="Stretch" Icon="/VAdvantage;component/Images/Print32.png" />
                        <my:VImage Height="35" HorizontalAlignment="Stretch" Margin="0,6,6,6" Name="vbtnRefresh" VerticalAlignment="Stretch" Width="35" Grid.Column="2" Icon="/VAdvantage;component/Images/refresh.png" />
                    </Grid>
                </Grid>
            </sdk:TabItem>
            <sdk:TabItem Header="T2" Name="tabItem2">
                <Grid Background="Transparent">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <my:VDataGrid AutoGenerateColumns="False" Height="Auto" HorizontalAlignment="Stretch" Margin="0" Name="vdgvRecords" VerticalAlignment="Stretch" Width="Auto" />
                    <Grid Grid.Row="1" HorizontalAlignment="Stretch" Margin="0" Name="grid4" VerticalAlignment="Stretch">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <my:VButton Content="Re-Post" Height="25" HorizontalAlignment="Stretch" Margin="6" Name="vbtnRePost" VerticalAlignment="Stretch" Width="Auto" />
                        <my:VCheckBox Content="Force" Grid.Column="1" Height="18" HorizontalAlignment="Stretch" Margin="6,14,6,12" Name="vchkforcePost" VerticalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Top" />
                        <my:VLabel Grid.Column="2" Height="Auto" HorizontalAlignment="Stretch" Margin="6,0" Name="vlblStatuslineT2" VerticalAlignment="Stretch" Width="Auto" HorizontalContentAlignment="Center" Content="Enter Selction and Display criteria and Start Query try to find" />
                        <my:VImage Grid.Column="3" Height="35" HorizontalAlignment="Stretch" Margin="0,4,6,0" Name="vbtnPrintT2" VerticalAlignment="Top" Width="35" VerticalContentAlignment="Stretch" Icon="/VAdvantage;component/Images/Print32.png" />
                        <my:VImage Height="35" HorizontalAlignment="Stretch" Margin="0,4,6,6" Name="vbtnRefreshT2" VerticalAlignment="Stretch" Width="35" Grid.Column="4" Icon="/VAdvantage;component/Images/refresh.png" />

                    </Grid>
                    
                </Grid>
            </sdk:TabItem>
        </my:VTabControl>
    </Grid>
</frm:Form>
